package org.jsona4j.tests.group1;

import java.text.ParseException;
import java.util.Date;
import java.util.Map;

import org.jsona4j.annotations.JSONObject;
import org.jsona4j.annotations.JSONValue;

@JSONObject
public class PublicTrendList {
	
	public Date asOf;
	
	@JSONValue
	public Map<TrendDate, Trend[]> trends;
	
	
	@JSONValue("as_of")
	public void setAsOf(Long asOf) throws ParseException {
		this.asOf = new Date(asOf);
	}
}
